package Views;

import UCM.UCDisplayMakeAirport;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JPanel;

/**
 *
 * @author Joshua King
 */
public class ViewDisplayCreateAirport extends JPanel {
    protected JButton makeAirportButton = new JButton("Make Airport");
    private final UCDisplayMakeAirport UCDisplayMakeAirport = new UCDisplayMakeAirport(this);

    public ViewDisplayCreateAirport() {
        setLayout(new FlowLayout());
        add(makeAirportButton);
        makeAirportButton.addActionListener(new AdapterUCCToAL(UCDisplayMakeAirport));
    }

    public void setMakeAirportVisible() {
        ViewMain.getInstance().updateMakeAirport();
    }
}
